import os

#使用allure生成报告
import pytest

from utils.handle_path import base_path

#需要执行的模块名称
model_name = "all_test.py"
#拼接模块路径
case_test_path = os.path.join(base_path,'testcases',model_name)

pytest.main(["-vs", case_test_path,'--clean-alluredir',"--alluredir=allure-results"])

os.system('copy environment.properties allure-results\environment.properties')
#os.system("allure serve allure-results")
#os.system('allure generate allure-results -o allure-reports --clean')



